package cn.iocoder.yudao.module.resource.controller.admin.creator.vo;

import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum;
import cn.iocoder.yudao.framework.common.validation.InEnum;
import cn.iocoder.yudao.module.resource.enums.AuditStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Schema(description = "管理后台 - 创作者创建/修改 Request VO")
@Data
public class ResourceCreatorSaveReqVO {

    @Schema(description = "创作者ID", example = "1024")
    private Long id;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1001")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "创作者昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "设计师小明")
    @NotBlank(message = "创作者昵称不能为空")
    @Size(max = 100, message = "创作者昵称长度不能超过100个字符")
    private String nickname;

    @Schema(description = "头像URL", example = "https://example.com/avatar.jpg")
    @Size(max = 500, message = "头像URL长度不能超过500个字符")
    private String avatar;

    @Schema(description = "简介", example = "专注于图标设计")
    @Size(max = 500, message = "简介长度不能超过500个字符")
    private String introduction;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    @InEnum(value = CommonStatusEnum.class, message = "状态必须是 {value}")
    private Integer status;

    @Schema(description = "审核状态", example = "1")
    @InEnum(value = AuditStatusEnum.class, message = "审核状态必须是 {value}")
    private Integer auditStatus;

    @Schema(description = "审核备注", example = "审核通过")
    @Size(max = 500, message = "审核备注长度不能超过500个字符")
    private String auditRemark;

}
